home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Development / Source / Connection Tool ƒ / ConnToolCommon.h < prev    next >
Text File  |  1994-02-19  |  1KB  |  50 lines

  1. // ===========================================================================
  2. // "Connection Tool Skeleton in C" for the Communications Toolbox
  3. // 
  4. //    Copyright © 1994 Peter J. Creath
  5. //    All Rights Reserved Worldwide
  6. // ===========================================================================
  7.  
  8. #include <CommResources.h>
  9. #include <ConnectionTools.h>
  10. #include <Serial.h>                                // This is implementation-dependent
  11.  
  12. #define    myFirstItem        1
  13. #define    mySecondItem    2
  14. #define localDITLID        1
  15.  
  16. // ===========================================================================
  17. // PrivateRecord {struct}
  18. //     This structure should be designed to handle any run-time data needed throughout the connection
  19. //     tool.
  20. // ===========================================================================
  21. typedef struct
  22. {
  23.     long         foobar;
  24.     long         status;
  25.     Boolean    breakPending;
  26.     short    inRefNum;
  27.     short    outRefNum;
  28.     struct
  29.         {
  30.             IOParam    theParamBlk;
  31.         } myRBlk;
  32.     struct
  33.         {
  34.             IOParam    theParamBlk;
  35.         } myWBlk;
  36. } PrivateRecord, *PrivatePtr, **PrivateHandle;
  37.  
  38. // ===========================================================================
  39. // ConfigRecord {struct}
  40. //     This structure should be designed to handle whatever saved configuration data may be needed.
  41. // ===========================================================================
  42. typedef struct
  43. {
  44.     long        foobar;
  45.     Str255    portName;
  46.     SerShk    shaker;
  47.     short    dataBits;
  48.     short    baudRate;
  49. } ConfigRecord, *ConfigPtr, **ConfigHandle;
  50.